package org.budo.wxpay.api;

import org.budo.support.lang.util.RandomUtil;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author limingwei
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class OrderQueryRequest extends AbstractWxPayRequest {
    private static final long serialVersionUID = 4287706919763534542L;
    private String outTradeNo;

    private String nonceStr;

    public OrderQueryRequest() {
        this.setNonceStr(RandomUtil.randomNumberString(32));
    }

    public OrderQueryRequest(String outTradeNo) {
        this();

        this.setOutTradeNo(outTradeNo);
    }
}
